package com.zeng.dao;

import com.zeng.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author zeng
 * @data 2021/07/02 18:44
 */
public interface UserMapper {
    List<User> getUser();
    //根据id查询用户
    User getUserByid(int id);

    //插入一个用户
    boolean InsertUser(User user);

    void InsertUserByMap(Map<String,Object> map);

    //修改用户
    boolean UpdateUser(User user);

    //删除用户
    boolean delete(int id);

    void delete1(Map<String, Integer> map);
}
